package huang.dao;

import huang.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Creat by 黄伟洪 on 2021/7/19 17:54
 */
public interface UserDao {

    /*查询所有用户*/
    public List<User> getAllUsers();

    /*验证登录*/
    public User getUserByUP(String username, String password);

    /*添加用户*/
    public int addUser(String username, String password, String phone, Boolean isAdmin);

    /*删除用户*/
    public int deleteUserByIDS(List<Integer> ids);

    /*修改密码*/
    public int updatePwd(int id, String oldPwd, String newPwd);

}
